
from time import sleep
from selenium import webdriver
from selenium.webdriver.common.by import By


web = webdriver.Chrome()
web.implicitly_wait(2)

web.get('http://cdn1.python3.vip/files/selenium/test4.html')

web.find_element(By.ID, 'b3').click()
alert = web.switch_to.alert
print(alert.text)
alert.send_keys("我是球球")
alert.accept()


sleep(10)
web.quit()
